package com.ai.module.user.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * @author: MrHe
 * @create: 2023-11-25 10:45
 * @description:
 **/
@Data
@ApiModel("用户AI信息")
public class UserRobotVo  {

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("AI名称")
    private String robotName;

    @ApiModelProperty("AI类型 1 chatgpt 2 midJourney")
    private Integer robotType;

    @ApiModelProperty("AI头像链接")
    private String imageUrl;

    @ApiModelProperty("AIId")
    private String uuid;

    @ApiModelProperty("AIId")
    private String robotId;

    @ApiModelProperty("最近一次的聊天时间")
    private  String lastChatTime;

    @ApiModelProperty("AI背景")
    private String backGroundUrl;


    private  boolean hasChoose;
    public void setUserId(String userId) {
        this.userId = userId;
        if (StringUtils.hasText(userId)){
            setHasChoose(true);
        }
    }
}
